import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppComponent } from './app.component';
import {RouterModule} from "@angular/router";
import {appRoutes} from "./app.routes";
import {GameComponent} from "./game/game.component";
import {GameModule} from "./game/game.module";
import { LoginComponent } from './user/login/login.component';
import { RegisterComponent } from './user/register/register.component';
import {FormsModule} from "@angular/forms";
import { GameHouseComponent } from './game/game-house/game-house.component';
import { CreateGameComponent } from './game/create-game/create-game.component';
import { JoinGameComponent } from './game/join-game/join-game.component';
import {UserModule} from "./user/user.module";
import {MatSlideToggleModule} from "@angular/material/slide-toggle";
import {BrowserAnimationsModule} from "@angular/platform-browser/animations";
import {ButtonModule, DevUIModule} from "ng-devui";
import { EmptyComponent } from './empty/empty.component';
import { HashLocationStrategy, LocationStrategy } from "@angular/common";
@NgModule({
  declarations: [
    AppComponent,
    LoginComponent,
    RegisterComponent,
    GameHouseComponent,
    CreateGameComponent,
    JoinGameComponent,
    EmptyComponent,

  ],
  imports: [
    BrowserModule,
    RouterModule.forRoot(appRoutes),
    GameModule,
    FormsModule,
    UserModule,
    BrowserAnimationsModule,
    DevUIModule,
    ButtonModule
  ],
  providers: [ {
    provide: LocationStrategy,
    useClass: HashLocationStrategy
  }],
  bootstrap: [AppComponent]
})
export class AppModule { }
